Rewriting modulo a rewrite system

نویسنده

  • Patrick Viry
چکیده

We introduce rewriting with two sets of rules, the rst interpreted equa-tionally and the second not. A semantic view considers equational rules as deening an equational theory and reduction rules as deening a rewrite relation modulo this theory. An operational view considers both sets of rules as similar. We introduce suucient properties for these two views to be equivalent (up to diierent notions of equivalence). The paper ends with a collection of example showing the eeectiveness of this approach. Rewriting can be viewed simultaneously as the most basic symbol-manipulating method, and as a very expressive speciication framework, given the expressive power of rewriting modulo equations. It is a primary candidate to the role of a general logical framework Mes92, MOM93]. Historically, rewriting has been given an equational semantics, saying that a rewrite rule u ?! v is interpreted as u is equal to v. This is the case for instance when deening functions or solving the word problem in a equational theory. But rewriting is also useful for specifying non equational relations, such as transitions between states or deduction steps, in which case it is solely interpreted as reduction. However, a naive combination of these two kinds of semantics does not work, as shown by the non-deterministic choice example: The set of rules on the left specify addition in Peano arithmetics, and one would like to give it an equational interpretation (1 + 2 is equal to 3). However, extending the equa-tional interpretation to the two rules on the right, which specify a non-deterministic choice operator, would allow to deduce 0 = 1, and make the whole algebra collapse. The solution suggested by the work on rewriting logic is to keep all rules with an equa-tional interpretation as a set E of non-oriented equations, and consider the remaining rules as deening rewrite steps over classes modulo E (E can be thought of as deening a structure and R as computation over that structure). This is satisfactory on a semantic point of view, but disastrous on an operational one, since rewriting was precisely designed originally as a mean to handle such arbitrary big equational theories ! We propose here an extension to rewriting logic allowing for two kinds of rules, equational rules interpreted equationally and reduction rules not necessarily. The equational rules are given an equational semantics, but still have to be used only according to their orientation. The central notion …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Rewriting Modulo \beta in the \lambda\Pi-Calculus Modulo

The λ Π-calculus Modulo is a variant of the λ -calculus with dependent types where β -conversion is extended with user-defined rewrite rules. It is an expressive logical framework and has been used to encode logics and type systems in a shallow way. Basic properties such as subject reduction or uniqueness of types do not hold in general in the λ Π-calculus Modulo. However, they hold if the rewr...

متن کامل

Rewriting modulo a Rewrite System Universit a Degli Studi Di Pisa Dipartimento Di Informatica Rewriting modulo a Rewrite System

We introduce rewriting with two sets of rules, the rst interpreted equationally and the second not. A semantic view considers equational rules as deening an equational theory and reduction rules as deening a rewrite relation modulo this theory. An operational view considers both sets of rules as similar. We introduce suucient properties for these two views to be equivalent (up to diierent notio...

متن کامل

A Complete Equational Axiomatization for Bpa with Preex Iteration

Preex iteration x is added to Basic Process Algebra with deadlock and empty process. We present a nite equational axiomatization for this process algebra, and we prove that this axiomatization is complete with respect to strong bisimulation equivalence. This result is a mild generalization of a similar result in the setting of basic CCS in Fokkink (1994b). To obtain this completeness result, we...

متن کامل

Transformation techniques for context-sensitive rewrite systems

Context-sensitive rewriting is a computational restriction of term rewriting used to model non-strict (lazy) evaluation in functional programming. The goal of this paper is the study and development of techniques to analyze the termination behavior of context-sensitive rewrite systems. For that purpose, several methods have been proposed in the literature which transform contextsensitive rewrit...

متن کامل

A Reduction-preserving Completion for Proving Confluence of Non-terminating Term Rewriting

We give a method to prove confluence of term rewriting systems that contain non-terminating rewrite rules such as commutativity and associativity. Usually, confluence of term rewriting systems containing such rules is proved by treating them as equational term rewriting systems and considering E-critical pairs and/or termination modulo E. In contrast, our method is based solely on usual critica...

متن کامل

A Reduction-Preserving Completion for Proving Confluence of Non-Terminating Term Rewriting Systems

We give a method to prove confluence of term rewriting systems that contain non-terminating rewrite rules such as commutativity and associativity. Usually, confluence of term rewriting systems containing such rules is proved by treating them as equational term rewriting systems and considering E-critical pairs and/or termination modulo E. In contrast, our method is based solely on usual critica...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995